package misa;

import java.util.ArrayList;
import java.util.List;

public class ObjectiveFunction {
	public List getValue(List solution){
		int alpha = 2;
		int q = 4;
		List objectValue = new ArrayList();
		double x1 = (Double)solution.get(0);
		double x2 = (Double)solution.get(1);
		
		double f1= x1;
		double f2 = (1+10*(Double)solution.get(1))*(1-Math.pow((x1/(1+10*x2)), alpha)-(x1/(1+10*x2))*Math.sin(2*Math.PI*q*x1));
		
		objectValue.add(f1);
		objectValue.add(f2);
		
		return objectValue;
	}
}
